package com.baidu.springcloud.controller;

import com.baidu.springcloud.service.MessageMqProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ShiLei
 * @version v1.0
 * @date 2020-03-24 10:28
 */
@RestController
public class MessageMqController {

    @Resource
    private MessageMqProvider messageMqProvider;

    @GetMapping("send")
    public String send(){
        return messageMqProvider.send();
    }
}
